Fully Qualified Name: | Laminas\Barcode\Renderer\Image |
Extends: | AbstractRenderer |
Class for rendering the barcode as image
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Image |
checkParams() | Checking of parameters after all settings | AbstractRenderer |
draw() | Draw the barcode in the rendering resource | AbstractRenderer |
getAutomaticRenderError() | Retrieve the automatic rendering of exception | AbstractRenderer |
getBarcode() | Retrieve the barcode object | AbstractRenderer |
getHeight() | Get barcode height | Image |
getHorizontalPosition() | Horizontal position of the barcode in the rendering resource | AbstractRenderer |
getImageType() | Retrieve the image type to produce | Image |
getLeftOffset() | Retrieve vertical adjustment | AbstractRenderer |
getModuleSize() | Set the size of a module | AbstractRenderer |
getRendererNamespace() | Retrieve renderer namespace | AbstractRenderer |
getTopOffset() | Retrieve vertical adjustment | AbstractRenderer |
getTransparentBackground() | AbstractRenderer | |
getType() | Retrieve renderer type | AbstractRenderer |
getVerticalPosition() | Vertical position of the barcode in the rendering resource | AbstractRenderer |
getWidth() | Get barcode width | Image |
render() | Draw and render the barcode with correct headers | Image |
setAutomaticRenderError() | Activate/Deactivate the automatic rendering of exception | AbstractRenderer |
setBarcode() | Set the barcode object | AbstractRenderer |
setHeight() | Set height of the result image | Image |
setHorizontalPosition() | Horizontal position of the barcode in the rendering resource | AbstractRenderer |
setImageType() | Set the image type to produce (png, jpeg, gif) | Image |
setLeftOffset() | Manually adjust left position | AbstractRenderer |
setModuleSize() | Set the size of a module | AbstractRenderer |
setOptions() | Set renderer state from options array | AbstractRenderer |
setRendererNamespace() | Set renderer namespace for autoloading | AbstractRenderer |
setResource() | Set an image resource to draw the barcode inside | Image |
setTopOffset() | Manually adjust top position | AbstractRenderer |
setTransparentBackground() | Set whether background should be transparent Will work for SVG and Image (png and gif only) | AbstractRenderer |
setVerticalPosition() | Vertical position of the barcode in the rendering resource | AbstractRenderer |
setWidth() | Set barcode width | Image |
Constructor
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns:
Checking of parameters after all settings
Returns: bool
Draw the barcode in the rendering resource
Returns: mixed
Retrieve the automatic rendering of exception
Returns: bool
Retrieve the barcode object
Returns: \Object\ObjectInterface
Get barcode height
Returns: int
Horizontal position of the barcode in the rendering resource
Returns: string
Retrieve the image type to produce
Returns: string
Retrieve vertical adjustment
Returns: int
Set the size of a module
Returns: float
Retrieve renderer namespace
Returns: string
Retrieve vertical adjustment
Returns: int
Returns: bool
Retrieve renderer type
Returns: string
Vertical position of the barcode in the rendering resource
Returns: string
Get barcode width
Returns: int
Draw and render the barcode with correct headers
Returns: mixed
Activate/Deactivate the automatic rendering of exception
Parameter Name | Type | Description |
---|---|---|
$value | bool |
Returns: self Provides a fluent interface
Set the barcode object
Parameter Name | Type | Description |
---|---|---|
$barcode | \Object\ObjectInterface |
Returns: self Provides a fluent interface
Set height of the result image
Parameter Name | Type | Description |
---|---|---|
$value | null|int |
Returns: self Provides a fluent interface
Horizontal position of the barcode in the rendering resource
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: self Provides a fluent interface
Set the image type to produce (png, jpeg, gif)
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: self Provides a fluent interface
Manually adjust left position
Parameter Name | Type | Description |
---|---|---|
$value | int |
Returns: self Provides a fluent interface
Set the size of a module
Parameter Name | Type | Description |
---|---|---|
$value | float |
Returns: self Provides a fluent interface
Set renderer state from options array
Parameter Name | Type | Description |
---|---|---|
$options | array |
Returns: self Provides a fluent interface
Set renderer namespace for autoloading
Parameter Name | Type | Description |
---|---|---|
$namespace | string |
Returns: self Provides a fluent interface
Set an image resource to draw the barcode inside
Parameter Name | Type | Description |
---|---|---|
$image | resource |
Returns: self Provides a fluent interface
Manually adjust top position
Parameter Name | Type | Description |
---|---|---|
$value | int |
Returns: self Provides a fluent interface
Set whether background should be transparent Will work for SVG and Image (png and gif only)
Parameter Name | Type | Description |
---|---|---|
$bool | ||
$bool |
Returns: self Provides a fluent interface
Vertical position of the barcode in the rendering resource
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: self Provides a fluent interface
Set barcode width
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: self Provides a fluent interface